/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package meteocal.boundary;

import java.io.Serializable;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;
import meteocal.entityManager.UserManager;

/**
 *
 * @author andrea
 */
@Named(value = "userBean")
@RequestScoped
public class UserBean implements Serializable{
    
    @Inject
    private UserManager um;
    
    public UserBean(){
    }
    
    public String getName(){
        return um.getLoggedUser().getName();
    }
   
}
